package com.demo.zhuhe;

import java.util.ArrayList;
import java.util.List;

public class Branch extends Corp{

	private List<Corp> list=new ArrayList<Corp>();
	public Branch(String _name, String _position, int _salary) {
		super(_name, _position, _salary);
	}
	
	public void addSubordinate(Corp corp){
		corp.setParent(this);
		this.list.add(corp);
	} 
	
	public List<Corp> getSubordinate(){
		return this.list;
	}

}
